package com.shisfish.library.Utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormatUtils {

	public static final SimpleDateFormat DATEFORMAT_1 = new SimpleDateFormat("yyyyMMddHHmmss");
	
	public static final SimpleDateFormat DATEFORMAT_2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	
	public static final SimpleDateFormat DATEFORMAT_3 = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
	
	public static final SimpleDateFormat DATEFORMAT_4 = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
	
	public static final SimpleDateFormat DATEFORMAT_5 = new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
	
	public static final SimpleDateFormat DATEFORMAT_6 = new SimpleDateFormat("yyyy/MM/dd");
	
	public static String getDateformat_1(Date date) {
		
		String str = DATEFORMAT_1.format(date);
		
		return str;
	}
	
	public static String getDateformat_2(Date date) {
		
		String str = DATEFORMAT_2.format(date);
		
		return str;
	}
	
	public static String getDateformat_3(Date date) {
		
		String str = DATEFORMAT_3.format(date);
		
		return str;
	}

	public static String getDateformat_4(Date date) {
		
		String str = DATEFORMAT_4.format(date);
		
		return str;
	}

	public static String getDateformat_5(Date date) {
		
		String str = DATEFORMAT_5.format(date);
		
		return str;
	}
	
	public static String getDateformat_6(Date date) {
		
		String str = DATEFORMAT_6.format(date);
		
		return str;
	}
	
	public static void main(String[] args) {
		System.out.println(getDateformat_1(new Date()));
		System.out.println(getDateformat_2(new Date()));
		System.out.println(getDateformat_3(new Date()));
		System.out.println(getDateformat_4(new Date()));
		System.out.println(getDateformat_5(new Date()));
	}
	
}
